<?php
$taikhoan = $this->taikhoan;
$dsphieudh = $this->dsphieudh;

$taikhoan instanceof Application_Model_bean_TaiKhoan;

?>


<div class="center_title_bar">Thông Tin Cá Nhân</div>
    <div class="prod_box_big">
        <div class="top_prod_box_big"></div>
        <div class="center_prod_box_big">
			<center>
<h3>THÔNG TIN CỦA BẠN</h3>
<table   border="1" id="myTable" style="width: 400px;">
	<thead>
	<tr >
		<td >Thông tin</td>
		<td >Nội dung</td>
	</tr>
	</thead>
	<tbody>
	<tr class="tr1">
		<td >Mã Thành Viên</td>
		<td ><?php
		echo $taikhoan->getMaTaiKhoan ()?></td>
	</tr>
	<tr class="tr2">
		<td>username</td>
		<td><?php
		echo $taikhoan->getUsername ()?></td>
	</tr>
	<tr class="tr1">
		<td>Họ Tên</td>
		<td><?php
		echo $taikhoan->getHoVaTen ()?></td>
	</tr>
	<tr class="tr2">
		<td>Địa chỉ</td>
		<td><?php
		echo $taikhoan->getDiaChi ()?></td>
	</tr>
	<tr class="tr1">
		<td>Email</td>
		<td><?php
		echo $taikhoan->getEmail ()?></td>
	</tr>
	<tr class="tr2">
		<td>Số Điện Thoại</td>
		<td><?php
		echo $taikhoan->getSoDienThoai ()?></td>
	</tr>

	<tr>


		<td colspan="2" align="center">
		<form id="f2" action="update"><input type="submit"
			value="Sửa Thông Tin"></form>
		</td>

	</tr>
	</tbody>
</table>
<br></br>
<h3>THÔNG TIN ĐẶT HÀNG</h3>
<table border="1" style="width: 400px;" id="myTable" >
	<thead>
	<tr>
		<td>Mã phiếu</td>
		<td>Ngày Mua</td>
		<td>Thành Tiền</td>
		<td></td>
	</tr>
	</thead>
	
			<?php
			$i=0;
			foreach ( $dsphieudh as $phieu ) {
				$phieu instanceof Application_Model_bean_PhieuDatHang;
				$i++;
				$className='tr1';
				if($i%2==0) $className='tr2';
				?>
			<tr align="center" class="<?php echo $className?>">
		<td><?php
				echo $phieu->getMaPhieuDatHang ();
				?></td>
		<td><?php
				echo $phieu->getNgayTao ();
				?></td>
		
		<td><?php
				echo $phieu->getGiaTri ();
				?></td>
					
		<td>
		<form action="<?php echo $this->url(array('action'=>'chitietphieudathang',
												'controller'=>'phieu-dat-hang')); ?>" method="post"><input type="submit" value="Xem Chi Tiết"></input>
		 <input type="hidden" value="<?php
				echo $phieu->getMaPhieuDatHang ()?>" name="idPhieuDatHang"></form>
		</td>

	</tr>
			<?php
			}
			?>
	</table>


</center>
        </div>
        <div class="bottom_prod_box_big"></div>
      </div>
